import serial
import time
import sys

print(sys.argv[1])

ser=serial.Serial(sys.argv[1])


ser.setDTR(1)
time.sleep(0.3)
ser.setDTR(0)
time.sleep(0.3)

ser.setDTR(1)
time.sleep(0.3)
ser.setDTR(0)
time.sleep(0.3)

ser.setDTR(1)
time.sleep(0.3)
ser.setDTR(0)
time.sleep(0.3)

ser.setDTR(1)
time.sleep(0.3)
ser.setDTR(0)
time.sleep(0.3)

ser.setDTR(1)
time.sleep(0.3)
ser.setDTR(0)
time.sleep(0.3)

ser.close()